<!DOCTYPE html>
<meta charset="utf-8">
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<style>
#target {
  background-image: linear-gradient(var(--, black), white);
  transition: color 1s;
}
</style>
<div id="target"></div>
<script>
'use strict';
test(() => {
  getComputedStyle(target).color;
  target.style.color = 'green';
  getComputedStyle(target).color;
}, 'Don\'t crash when transitioning with a var linear-gradient.');
</script>